package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import com.atguigu.jxc.entity.PurchaseListGoodsCount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: PurchaseListGoodsDao
 * Description:
 * Date: 2022/1/17 15:33
 *
 * @version:
 * @since JDK 1.8
 */
@Repository
public interface PurchaseListGoodsDao {

    void savePurchaseList(@Param("purchaseList") PurchaseList purchaseList);

    PurchaseList selectByPurchaseNumber(@Param("purchaseNumber") String purchaseNumber);

    void savePurchaseListGoods(@Param("purchaseListGoods") PurchaseListGoods purchaseListGoods);

    List<PurchaseList> getPurchaseListGoods(@Param("purchaseNumber") String purchaseNumber, @Param("supplierId") Integer supplierId,@Param("state")  Integer state,@Param("sTime") String sTime,@Param("eTime")  String eTime);

    List<PurchaseListGoods> getGoodsList(@Param("purchaseListId") Integer purchaseListId);

    void deletePurchaseList(@Param("purchaseListId") Integer purchaseListId);

    void deletePurchaseListGoods(@Param("purchaseListId") Integer purchaseListId);

    void updateState(@Param("purchaseListId") Integer purchaseListId);

    List<Integer> getGoodsList1(@Param("goodsTypeId")Integer goodsTypeId,@Param("codeOrName") String codeOrName);
}
